﻿@using QG.FrontDesk.Model;
@{
    Layout = null;
    //var username = DataContext<UserInfo>.current.userInfo?.UserName;  @resume.Educational.BeginTime
    var resume = ViewBag.resume as ResumeInfo;
    DateTime now = DateTime.Parse(resume.Businessexperien.BeginTime.ToString());
    DateTime now1 = DateTime.Parse(resume.Businessexperien.OverTime.ToString());
    var BeginTime = now.ToString("yyyy-MM-dd");
    var OverTime = now1.ToString("yyyy-MM-dd");
    DateTime now2 = DateTime.Parse(resume.ProjectExperien.BeginTime.ToString());
    DateTime now3 = DateTime.Parse(resume.ProjectExperien.BeginTime.ToString());
    var proBeginTime = now2.ToString("yyyy-MM-dd");
    var proOverTime = now3.ToString("yyyy-MM-dd");
    DateTime now4 = DateTime.Parse(resume.Educational.BeginTime.ToString());
    DateTime now5 = DateTime.Parse(resume.Educational.OverTime.ToString());
    var eduBeginTime = now4.ToString("yyyy-MM-dd");
    var eduOverTime = now5.ToString("yyyy-MM-dd");
}

<!DOCTYPE HTML>
<html>
<head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>简历预览-我的简历-1024网-最专业的互联网招聘平台</title>
    <meta content="23635710066417756375" property="qc:admins">
    <meta name="description" content="1024网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在1024网">
    <meta name="keywords" content="1024,1024网,1024招聘,拉钩, 拉钩网 ,互联网招聘,1024互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 1024官网, 1024百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">

    <meta content="QIQ6KC1oZ6" name="baidu-site-verification">

    <!-- <div class="web_root"  style="display:none">h</div> -->
    <script type="text/javascript">
        var ctx = "h";
        console.log(1);</script>
    <link href="~/h/images/favicon.ico" rel="Shortcut Icon">
    <link href="~/style/css/style.css" type="text/css" rel="stylesheet">
    <link href="~/style/css/colorbox.min.css" type="text/css" rel="stylesheet">
    <link href="~/style/css/popup.css" type="text/css" rel="stylesheet">

    <script type="text/javascript" src="~/style/js/jquery.1.10.1.min.js"></script>

    <script src="~/style/js/jquery.colorbox-min.js" type="text/javascript"></script>
    <script src="~/style/js/TimeFormat.js"></script>
    <script>
        $(function () {
            $("body").on("click", "a.btn_s", function () {
                $.colorbox.close();
                parent.jQuery.colorbox.close();
            });
            $(".inline").colorbox({
                inline: true
            });
        });</script>
    <script src="~/style/js/ajaxCross.json" charset="UTF-8"></script>
</head>

<body>
    <div id="previewWrapper">
        <div class="preview_header">
            <h1 title="@resume.UserInfo.UserName 的简历">@(resume.UserInfo.UserName)的简历</h1>
            <a title="下载简历" class="inline cboxElement" href="#downloadOnlineResume">下载该简历</a>
        </div><!--end .preview_header-->

        <div class="preview_content" id="info">
            <div class="profile_box" id="basicInfo">
                <h2>基本信息</h2>
                <div class="basicShow">
                    <span>
                        @resume.UserInfo.UserName |
                    </span>
                    @if (@resume.UserInfo.Sex == true)
                    {
                        <span>女 |</span>
                    }
                    @if (@resume.UserInfo.Sex == false)
                    {
                        <span>男 |</span>
                    }
                    @if (@resume.UserInfo.Education == 0)
                    {
                        <span>大专以下 ·</span>
                    }
                    @if (@resume.UserInfo.Education == 1)
                    {
                        <span>本科 ·</span>
                    }
                    @if (@resume.UserInfo.Education == 2)
                    {
                        <span>研究生 ·</span>
                    }
                    @if (@resume.UserInfo.Education == 3)
                    {
                        <span>博士 ·</span>
                    }
                    <span>
                        @resume.Educational.SchoolName |
                    </span>

                    @if (@resume.UserInfo.WorkExperien == 1)
                    {
                        <span>1年工作经验 |</span>
                    }
                    @if (@resume.UserInfo.WorkExperien == 2)
                    {
                        <span>2年工作经验 |</span>
                    }
                    @if (@resume.UserInfo.WorkExperien == 3)
                    {
                        <span>3年工作经验 |</span>
                    }
                    @if (@resume.UserInfo.WorkExperien == 4)
                    {
                        <span>5年以上工作经验 |</span>
                    }
                    <span>
                        @resume.Expecttowork.CityName<br>
                    </span>
                    <span>
                        @resume.Expecttowork.PonsitDesired ·
                    </span>
                    <span>
                        @resume.Businessexperien.CompanyName <br>
                    </span>
                    <span>
                        @resume.UserInfo.Phone |
                    </span>
                    <span>
                        @resume.UserInfo.Email<br>
                    </span>

                    <div class="m_portrait">
                        <div></div>
                        <img width="120" height="120" alt="jason" src="~/style/images/default_headpic.png" />
                    </div>
                </div><!--end .basicShow-->
            </div><!--end #basicInfo-->

            <div class="profile_box" id="expectJob">
                <h2>期望工作</h2>
                <div class="expectShow">
                    <span>
                        @resume.Expecttowork.CityName，
                    </span>
                    <span>
                        @if (@resume.Expecttowork.WorkNature == 0)
                        {
                            <span>全职, </span>
                        }
                        else if (@resume.Expecttowork.WorkNature == 1)
                        {
                            <span>兼职, </span>
                        }
                        else if (@resume.Expecttowork.WorkNature == 2)
                        {
                            <span>实习, </span>
                        }
                    </span>
                    <span>
                        @resume.Expecttowork.ExpectSalary,
                    </span>
                    <span>
                        @resume.Expecttowork.PonsitDesired
                    </span>
                    @*广州，全职，月薪5k-10k，产品经理*@
                </div><!--end .expectShow-->
            </div><!--end #expectJob-->

            <div class="profile_box" id="workExperience">
                <h2>工作经历</h2>
                <div class="experienceShow">
                    <ul class="wlist clearfix">
                        <li class="clear">
                            <span class="c9">@BeginTime —— @OverTime</span>
                            <div>
                                <h3>@resume.Businessexperien.DesiredName </h3>
                                <h4>@resume.Businessexperien.CompanyName</h4>
                            </div>
                        </li>
                    </ul>
                </div><!--end .experienceShow-->
            </div><!--end #workExperience-->

            <div class="profile_box" id="projectExperience">
                <h2>项目经验</h2>
                <div class="projectShow">
                    <ul class="plist clearfix">
                        <li class="noborder">
                            <div class="projectList">
                                <div class="f16 mb10">
                                    @resume.ProjectExperien.ProjectName，@resume.ProjectExperien.HoldPost
                                    <span class="c9">
                                        （@proBeginTime —— @proOverTime）
                                    </span>
                                </div>
                                <div class="dl1"></div>
                            </div>
                        </li>
                    </ul>
                </div><!--end .projectShow-->
            </div><!--end #projectExperience-->

            <div class="profile_box" id="educationalBackground">
                <h2>教育背景</h2>
                <div class="educationalShow">
                    <ul class="elist clearfix">
                        <li class="clear">
                            <span class="c9">@eduBeginTime —— @eduOverTime</span>
                            <div>
                                <h3>@resume.Educational.SchoolName</h3>
                                @if (@resume.Educational.Education == 0)
                                {
                                    <h4>@resume.Educational.MajorName，大专以下</h4>
                                }
                                @if (@resume.Educational.Education == 1)
                                {
                                    <h4>@resume.Educational.MajorName，本科</h4>
                                }
                                @if (@resume.Educational.Education == 2)
                                {
                                    <h4>@resume.Educational.MajorName，研究生</h4>
                                }
                                @if (@resume.Educational.Education == 3)
                                {
                                    <h4>@resume.Educational.MajorName，博士</h4>
                                }

                            </div>
                        </li>
                    </ul>
                </div><!--end .educationalShow-->
            </div><!--end #educationalBackground-->

            <div class="profile_box" id="selfDescription">
                <h2>自我描述</h2>
                <div class="descriptionShow">
                    @resume.Self_Description
                </div><!--end .descriptionShow-->
            </div><!--end #selfDescription-->

            <div class="profile_box" id="worksShow">
                <h2>作品展示</h2>
                <div class="workShow">
                    <ul class="slist clearfix">
                        <li class="noborder">
                            <div class="workList c7">
                                <div class="f16">网址：<a target="_blank" href="@resume.WorksShow.WorkLink">@resume.WorksShow.WorkLink</a></div>
                                <p>@resume.WorksShow.Remark </p>
                            </div>
                        </li>
                    </ul>
                </div><!--end .workShow-->
            </div><!--end #worksShow-->
        </div><!--end .preview_content-->
    </div><!--end #previewWrapper-->
    <!------------------------------------- 弹窗lightbox ----------------------------------------->
    <div style="display:none;">
        <!-- 下载简历 -->
        <div class="popup" id="downloadOnlineResume">
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="c5 f18">请选择下载简历格式：</td>
                    </tr>
                    <tr>
                        <td>
                            <form action="/Person/ExportWord" method="post" id="sub">
                                <input type="hidden" id="html" name="html" value="" />
                                <input type="hidden" name="type" value="" />
                                <input type="hidden" name="name" value="@resume.UserInfo.UserName" />
                            </form>
                            <a class="btn_s"id="word" name="">word格式</a>
                            <a class="btn_s" id="h" name="">html格式</a>
                            <a class="btn_s" id="pdf">pdf格式</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div><!--/#downloadOnlineResume-->
    </div>
    <!------------------------------------- end ----------------------------------------->
    <script type="text/javascript">
        $(function () {
            $("#word").click(function () {
                $("#html").val($("#info").html());
                $("input[name=type]").val(1);
                $("#sub").submit();
            });
            $("#h").click(function () {
                $("#html").val($("#info").html());
                $("input[name=type]").val(2);
                $("#sub").submit();
            });
            $("#pdf").click(function () {                
                $(".m_portrait>img").remove();
                $("#html").val($("#info").html());
                $("input[name=type]").val(3);
                $("#sub").submit();
            });


        })
    </script>
    <div id="cboxOverlay" style="display: none;"></div><div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;"><div id="cboxWrapper"><div><div id="cboxTopLeft" style="float: left;"></div><div id="cboxTopCenter" style="float: left;"></div><div id="cboxTopRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxMiddleLeft" style="float: left;"></div><div id="cboxContent" style="float: left;"><div id="cboxTitle" style="float: left;"></div><div id="cboxCurrent" style="float: left;"></div><button type="button" id="cboxPrevious"></button><button type="button" id="cboxNext"></button><button id="cboxSlideshow"></button><div id="cboxLoadingOverlay" style="float: left;"></div><div id="cboxLoadingGraphic" style="float: left;"></div></div><div id="cboxMiddleRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxBottomLeft" style="float: left;"></div><div id="cboxBottomCenter" style="float: left;"></div><div id="cboxBottomRight" style="float: left;"></div></div></div><div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div></div>
</body>
</html>